﻿@model File_Manager.Models.Post_CYT

@{
    ViewBag.Title = "Borrado";
}

<h2>N° Ticket @Html.DisplayFor(model => model.id)</h2>

<h3>¿Seguro que desea borrar la selección?</h3>
<br /><br />
    <fieldset>
        <legend>Datos Remitente</legend>
            <table width="100%">
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.userName)</b></div>
                        <div class="display-field">
                                @Html.DisplayFor(model => model.userName)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Nombre Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.nameGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Apellido Remitente</b></div>
                        <div class="display-field">
                            @ViewBag.lastnameGuest
                        </div>
                    </td>
                </tr>
                <tr>
                    <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.dateGuest)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.dateGuest)
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>Correo Remitente</b></div>
                        <div class="display-field">
                        @ViewBag.mailGuest
                        </div>
                    </td>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.idStatus)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.nStatus.name)
                        </div>
                    </td>
                </tr>
            </table>
    </fieldset>
    <fieldset>
        <legend>Mensaje CYT</legend>
            <table width="100%">
               <tr>
                   <td width="33%">
                        <div class="editor-label"><b>@Html.LabelFor(model => model.asunto)</b></div>
                        <div class="display-field">
                            @Html.DisplayFor(model => model.asunto)
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div class="editor-label"><b>@Html.LabelFor(model => model.textoGuest)</b></div>
                        <div class="display-field">
                            @Html.TextAreaFor(model => model.textoGuest, new { rows = "6", cols = "80", maxlength = "300", @readonly="readonly" })
                        </div>

                    </td>
                </tr>
            </table>
    </fieldset>
    @if (Model.idStatus == 02)
    {
    <fieldset>
            <legend>Respuesta CYT</legend>
                <table width="100%">
                   <tr>
                       <td width="33%">
                            <div class="editor-label"><b>@Html.LabelFor(model => model.userAdmin)</b></div>
                            <div class="display-field">
                                @Html.DisplayFor(model => model.userAdmin)
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div class="editor-label"><b>@Html.LabelFor(model => model.textoAdmin)</b></div>
                            <div class="display-field">
                                @Html.TextAreaFor(model => model.textoAdmin, new { rows = "10", cols = "80", maxlength = "300", @readonly = "readonly" })
                            </div>

                        </td>
                    </tr>
                </table>
    </fieldset>
    }
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Borrar" /> |
        @Html.ActionLink("Ir a Atras", "DetailsAdmin", new { id = Model.id }) |
    </p>
}
